const express = require('express');
const router = express.Router()
const pool = require('../utils/pool')
router.post('/addjs',(req,res,next)=>{
    var obj = req.body
    pool.query('insert into technician set ?',[obj],(err,r)=>{
        if(err) {
            return next(err)
        }
		console.log(r)
		// 插入数据不需要判断
		res.send({code: 200, msg: '添加成功'})
    })
})
module.exports = router;
